package com.jk.controller;

import com.jk.entity.Product;
import com.jk.service.EsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
public class EsController {
    @Autowired
    private EsService esService;

    @RequestMapping("tong")
    public void tong(){
        esService.tong();
    }

    @RequestMapping("getPro1")
    public List<Map<String,Object>> getListPros(String name){


        return  esService.getListPros(name);

    }
}
